vulkan: Only update descriptor sets with contents
authorBenjamin Otte <otte@redhat.com>
Thu, 8 Jun 2023 04:55:40 +0000 (06:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 8 Jun 2023 19:53:06 +0000 (21:53 +0200)
commit89f20c2fb646c0637454ed099bd1e10246bee3f0
treed86fab850c010c7f9908d77a5581e41a18f41418
parent28fb91e85e8bab554cc03f419c55af0ae737e81c
vulkan: Only update descriptor sets with contents

If one of the descriptor sets doesn't have any items, don't include it
in the sets passed to vkUpdateDescriptorSets().

This has no effect right now, because we either have both images and
samplers or neither, but it will become relevant once we also support
buffers.
gsk/vulkan/gskvulkanrender.c